<?php /* Smarty version 2.6.12, created on 2008-10-30 11:03:59
         compiled from modules/Detailed_Product_Images/product_images.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'modules/Detailed_Product_Images/product_images.tpl', 8, false),)), $this); ?>
<?php func_load_lang($this, "modules/Detailed_Product_Images/product_images.tpl","lbl_detailed_images"); ?><?php if ($this->_tpl_vars['images'] != ""):  ob_start(); ?>
<center>
<?php unset($this->_sections['image']);
$this->_sections['image']['name'] = 'image';
$this->_sections['image']['loop'] = is_array($_loop=$this->_tpl_vars['images']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['image']['show'] = true;
$this->_sections['image']['max'] = $this->_sections['image']['loop'];
$this->_sections['image']['step'] = 1;
$this->_sections['image']['start'] = $this->_sections['image']['step'] > 0 ? 0 : $this->_sections['image']['loop']-1;
if ($this->_sections['image']['show']) {
    $this->_sections['image']['total'] = $this->_sections['image']['loop'];
    if ($this->_sections['image']['total'] == 0)
        $this->_sections['image']['show'] = false;
} else
    $this->_sections['image']['total'] = 0;
if ($this->_sections['image']['show']):

            for ($this->_sections['image']['index'] = $this->_sections['image']['start'], $this->_sections['image']['iteration'] = 1;
                 $this->_sections['image']['iteration'] <= $this->_sections['image']['total'];
                 $this->_sections['image']['index'] += $this->_sections['image']['step'], $this->_sections['image']['iteration']++):
$this->_sections['image']['rownum'] = $this->_sections['image']['iteration'];
$this->_sections['image']['index_prev'] = $this->_sections['image']['index'] - $this->_sections['image']['step'];
$this->_sections['image']['index_next'] = $this->_sections['image']['index'] + $this->_sections['image']['step'];
$this->_sections['image']['first']      = ($this->_sections['image']['iteration'] == 1);
$this->_sections['image']['last']       = ($this->_sections['image']['iteration'] == $this->_sections['image']['total']);
 if ($this->_tpl_vars['images'][$this->_sections['image']['index']]['avail'] == 'Y'):  if ($this->_tpl_vars['images'][$this->_sections['image']['index']]['tmbn_url']): ?>
<img src="<?php echo $this->_tpl_vars['images'][$this->_sections['image']['index']]['tmbn_url']; ?>
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['images'][$this->_sections['image']['index']]['alt'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" style="padding-bottom: 10px;" />
<?php else: ?>
<img src="<?php echo $this->_tpl_vars['xcart_web_dir']; ?>
/image.php?id=<?php echo $this->_tpl_vars['images'][$this->_sections['image']['index']]['imageid']; ?>
&amp;type=D" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['images'][$this->_sections['image']['index']]['alt'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" style="padding-bottom: 10px;" />
<?php endif; ?>
<br />
<?php endif;  endfor; endif; ?>
</center>
<?php $this->_smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean();  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "dialog.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_detailed_images'],'content' => $this->_smarty_vars['capture']['dialog'],'extra' => 'width="100%"')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>